Level1=Core.class(Level)

local frontTreeList = {
	"agac1.png"}
	
local frontTreeShottedList = {
	"agac1.png",
	"agac2.png",
	"agac3.png",
	"agac4.png"}
	
function Level1:init()
	self:addBackGround("Background.png")
	self:addBackGround("gokyuzu.png")
	
	frontTree=Tree.new(frontTreeShottedList,frontTreeList)
	frontTree:setScale(0.5,0.5)
	layerFront:addChild(frontTree)
	
end

local function onTimer(event)
	local bird1 = WhiteBird.new()
	local bird2 = BlackBird.new()
	local bird2 = BlackBird.new()
	
	bird1:setScaleX(0.4)
	bird1:setScaleY(0.4)
	layerBack:addChild(bird1)
	layerCenter:addChild(bird2)
 end
 
function Level1:start()
	local timer = Timer.new(1000, 120)
	timer:addEventListener(Event.TIMER, onTimer)
	timer:start()
end
